package jmcnet.libcommun.communs.time
{
	public class TimeHHMM extends Time
	{
		public function TimeHHMM(hh:uint=0, mm:uint=0) {
			super(hh, mm, 0, 0);
		}
		
		override public function toString():String {
			return timeToString(true, true, false, false);
		}
		
		public static function stringToTimeHHMM(str:String, hb:Boolean=true, mb:Boolean=true):TimeHHMM {
			if (str == null || str.length <= 0) return null;
			var t:Time = Time.stringToTime(str, hb, mb, false, false);
			return new TimeHHMM(t.hour, t.minute);
		}
	}
}